<script>
export default {
  props: ["node"],
  data() {
    return {};
  },
  render() {
     !this.node.date_type ? this.$set(this.node, "date_type", 'date') : null;
    return (
      <el-date-picker
        value={this.node.answer}
        onInput={(e)=>{
           this.node.answer=e
        }}
        type={this.node.date_type}
        placeholder="时间"
      ></el-date-picker>
    );
  },
};
</script>

<style scoped>
.el-input--small,.el-input__inner{
    width: 100%;
}
</style>